<?php 
header("Content-Type:text/html;charset=UTF-8");
//DOMDocument 读取XML 
$doc = new DOMDocument();
//读取XML文件
$doc->load('test.xml');
//取得humans标签的对象数组
$data = $doc->getElementsByTagName('humans');
//遍历
echo "姓名"."\t"."性别"."\t"."年龄"."</br>";

foreach($data as $val){
	print_r($data);

}








